Kafka Streams in Action: Real-Time Apps and Microservices With the Kafka Streams API by Bill Bejeck
Author:Bill Bejeck [Bejeck, Bill]
Language: eng
Format: epub
Tags: computers, internet, Web Programming, Technology & Engineering, Data Transmission Systems, Broadband, Languages, Java, Software Development & Engineering, General, Web Services & APIs
ISBN: 9781617294471
Google: lgl-swEACAAJ
Publisher: Manning
Published: 2018-09-16T23:39:50.714521+00:00
Figure 5.13. Creating session windows with inactivity periods and retention
With the call to windowedBy(SessionWindows.with(twentySeconds).until(fifteenMinutes)), you create a session window with an inactivity gap of 20 seconds and a retention period of 15 minutes. An inactivity time of 20 seconds means the application includes any record arriving within 20 seconds of the current sessionâs ending or start time within the current (active) session.
You then specify the aggregation operation to perform count, in this case, on the session window. If an incoming record falls outside the inactivity gap (on either side of the timestamp), the application creates a new session. The retention period maintains the session for the specified amount of time and allows for late-arriving data thatâs outside the inactivity period of a session but can still be merged. Additionally, as sessions are combined, the newly created session uses the earliest timestamp and latest timestamp for the start and end of the new session, respectively.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Exploring Deepfakes by Bryan Lyon and Matt Tora(7703)
Robo-Advisor with Python by Aki Ranin(7602)
Offensive Shellcode from Scratch by Rishalin Pillay(6091)
Microsoft 365 and SharePoint Online Cookbook by Gaurav Mahajan Sudeep Ghatak Nate Chamberlain Scott Brewster(4996)
Ego Is the Enemy by Ryan Holiday(4950)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4438)
Python for ArcGIS Pro by Silas Toms Bill Parker(4171)
Elevating React Web Development with Gatsby by Samuel Larsen-Disney(3872)
Machine Learning at Scale with H2O by Gregory Keys | David Whiting(3604)
Learning C# by Developing Games with Unity 2021 by Harrison Ferrone(3284)
Speed Up Your Python with Rust by Maxwell Flitton(3230)
Liar's Poker by Michael Lewis(3220)
OPNsense Beginner to Professional by Julio Cesar Bueno de Camargo(3191)
Extreme DAX by Michiel Rozema & Henk Vlootman(3169)
Agile Security Operations by Hinne Hettema(3122)
Linux Command Line and Shell Scripting Techniques by Vedran Dakic and Jasmin Redzepagic(3108)
Essential Cryptography for JavaScript Developers by Alessandro Segala(3081)
Cryptography Algorithms by Massimo Bertaccini(3001)
AI-Powered Commerce by Andy Pandharikar & Frederik Bussler(2981)
